package com.zx.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private int id;
    private String name;
    private String password;
    private String telephone;
    private String username;
    private int isadmin;
    public User(String username,String password){
        this.username=username;
        this.password=password;
    }
    public User(String username,String password,String telephone,String name){
        this.username=username;
        this.password=password;
        this.telephone=telephone;
        this.name=name;
    }

}
